#ifndef PROTOCOL_DT1_H
#define PROTOCOL_DT1_H
#include "tool.h"
#include "acquire_data.h"
#include "iot_driver.h"
#include "sensor_data_save.h"
#include "protocol_control.h"
#include "rtc_driver.h"




typedef struct PHOTO_INFO STR_PHOTO_INFO;

struct PHOTO_INFO
{
    uint16_t per_size;
    uint16_t total_block;
    uint16_t current_block;
    uint32_t time_stamp;

};

void dt1_pack_data(uint8_t send_type, uint8_t* send_buf, uint16_t* send_len);
int dt1_analys_data(uint8_t* data_buf, uint16_t data_len);
int count_pic_block(uint16_t per_size);
void pic_send_init(uint16_t per_size, uint8_t total_block);
void pic_set_current_block(uint8_t current_block);

bool is_pic_send_over(void);
bool is_pic_break_down(void);
#endif